//
//  MusicModel.m
//  ToWhere
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 www.TE.com. All rights reserved.
//

#import "MusicModel.h"

@implementation MusicModel

- (void)dealloc
{
    [_Action release];
    [_desc release];
    [_ID release];
    [_name release];
    [_picUrl release];
    [super dealloc];
}

-(instancetype)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+(MusicModel *)musicWithDictionary:(NSDictionary *)dic
{
    MusicModel *music = [[MusicModel alloc]initWithDictionary:dic];
    return [music autorelease];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqual:@"id"]) {
        self.ID = value;
    }
    if ([key isEqual:@"action"]) {
        self.Action = value;
    }
}


@end
